//
//  HomeContent.m
//  __PRODUCTNAME__
//
//  Created by Hanlingyu on 16/09/02
//  Copyright (c) ltq. All rights reserved.
//

#import "HomeContent.h"
#import "HomeChannels.h"

@implementation HomeContent

- (void)setValue:(id)value forKey:(NSString *)key {
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"channels"]) {
        NSMutableArray *array = [NSMutableArray array];
        for (NSDictionary *dic in value) {
            HomeChannels *chanels = [HomeChannels modelWithDic:dic];
            [array addObject:chanels];
        }
        _channels = array;
    }
}





+ (NSDictionary *)objectClassInArray{
    return @{@"channels" : [HomeChannels class]};
}

@end
